import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:myflutterproject/basematerialwidgetsdemo.dart';
import 'package:myflutterproject/routes.dart';
import 'package:myflutterproject/utils/overScrollBehavior.dart';

class InteractionModelWidgets extends StatelessWidget{
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('交互模型'),
        centerTitle: true,
      ),
      body: ScrollConfiguration(
        behavior: OverScrollBehavior(),
        child: ListView(
          children: <Widget>[
            ItemButton('LongPressDraggable(可以使其子widget在长按时可拖动)', longpressgraggable),
            ItemButton('GestureDetector(一个检测手势的widget)', basegesture),
            ItemButton('DragTarget(一个拖动的目标widget，在完成拖动时它可以接收数据)', dragtarget),
            ItemButton('Dismissible(滑动删除)', dismissible),
            ItemButton('IgnorePointer(用来拦截点击事件,忽略点击事件，不影响下层的点击事件)', ignorepointer),
            ItemButton('AbsorbPointer(用来拦截点击事件,会消费掉点击事件，不会穿透)', absorbpointer),
            ItemButton('Navigator(导航器，可以在多个页面(路由)栈之间跳转。)', navigatordemo),
            ItemButton('Scrollable(实现了可滚动widget的交互模型，但不包含UI显示相关的逻辑)', listDemo),

          ],
        ),
      ),
    );

  }

}